/*
 * @Author: howcode 1051495009@qq.com
 * @Date: 2025-01-20 11:23:26
 * @LastEditors: howcode 1051495009@qq.com
 * @LastEditTime: 2025-02-05 11:32:38
 * @Description: 
 */
import { defineConfig } from 'vite' //// 帮手函数，这样不用 jsdoc 注解也可以获取类型提示
import { createVuePlugin } from 'vite-plugin-vue2'
import path from 'path'

export default () =>
  defineConfig({
    base: "/reportdemo/",
    plugins: [createVuePlugin()],
    server: {
      open: true,//自动打开浏览器
      port: 1567,//端口号
    },
    css: {
      preprocessorOptions: {
        scss: {
          // 两种方式都可以
          // additionalData: '@import "@/utils/utils.scss";'
        }
      }
    },
    resolve: {
      alias: {
        '@': path.resolve('./src')
      }
    },
    assetsInclude: ['**/*.gltf'],
  })